/*
 * @Author: your name
 * @Date: 2021-09-15 20:03:02
 * @LastEditTime: 2021-11-04 17:29:22
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \uniapp-cil\src\common\js\utils.js
 */
// 公共方法，都挂在 $x
import * as funList from './funcList.js'
import color from 'uview-ui/libs/function/color.js'
const install = (Vue, vm) => {
    Vue.prototype.$x = {}
    Vue.prototype.$x.setColor = (field,value)=>{
        color[field] = value
    }
    vm.$u.vuex('vuex_color',color)
    for (let key in funList) {
        Vue.prototype.$x[key] = funList[key]
    }
}

export default {
    install
}